package com.xzg.erp.product.entity.dto;

import com.alibaba.excel.annotation.ExcelProperty;
import com.xzg.erp.common.PageDto;
import jakarta.validation.constraints.NotNull;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.math.BigDecimal;
import java.util.List;

@Data
@NoArgsConstructor
@AllArgsConstructor
public class ProductDto extends PageDto {
    private Integer id; // 主键
    @NotNull
    @ExcelProperty(value = "名称", index = 0)
    private String name; // 名称
    @NotNull
    @ExcelProperty(value = "编码", index = 1)
    private String code; // 编码
    @ExcelProperty(value = "规格", index = 2)
    private String specification; // 规格
    @ExcelProperty(value = "单价", index = 3)
    private BigDecimal price; // 单价
    @ExcelProperty(value = "备注", index = 4)
    private String remark; // 备注
    @ExcelProperty(value = "是否覆盖", index = 5)
    private String replace; // 备注
    private List<Integer> tagId; // 标签
    private List<Integer> typeId; // 类型
}
